package com.bigfire.dtm.api.dto.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;

/**
 * 分页请求基本参数
 * @author Damon S.
 */
@Data
@ApiModel(value = "分页请求基本参数")
public class PageableReqDTO {

    @Min(value = 1, message = "pageIndex必须大于等于1")
    @ApiModelProperty(value = "页码")
    private Long pageIndex;

    @Min(value = 1, message = "pageSize必须大于等于1")
    @ApiModelProperty(value = "每页行数")
    private Long pageSize;
}
